#include "vendingmachine.h"
#ifndef __NAMESERVER_H__
#define __NAMESERVER_H__
#include <vector>
using namespace std;

class Printer;
class VendingMachine;
class VendingMachineCardEater;
class VendingMachineOverCharger;

class NameServer {

	unsigned int numVendingMachines;
	unsigned int numStudents;
  unsigned int curIndex_reg;
  unsigned int *sl;
  VendingMachine **machineList;
  Printer *prt;

	public:
		NameServer( Printer &prt, unsigned int numVendingMachines, unsigned int numStudents );
		void VMregister( VendingMachine *vendingmachine );
		VendingMachine *getMachine( unsigned int id );
		VendingMachine **getMachineList();
    ~NameServer();
};

#endif